from tkinter import *

w = 500
h = 300


def su(ts44, ts55, hero):
    window = Tk()
    # window.geometry("200x100+550+250")
    screenwidth = window.winfo_screenwidth()
    screenheight = window.winfo_screenheight()
    window.geometry("%dx%d+%d+%d" % (w, h, (screenwidth - w) / 2, (screenheight - h - 70) / 2))
    window.resizable(1, 1)
    # -----------
    num = Label(window, text="五星已累计抽取" + str(ts55))
    num1 = Label(window, text="四星已累计抽取" + str(ts44))
    hero_list = Text(window)
    for i in range(hero.__len__()):
        hero_list.insert("end", str(i+1)+hero[i]+"\n")
    num.pack()
    num1.pack()
    hero_list.pack()
    # -----------
    window.mainloop()



